import httpss from "@/api/http";
// 修改菜单权限
export const PutMenu = (parmas: Menu.MenuOptions) => {
  return httpss.put(`/edit`, parmas);
};

//新增菜单
export const PostMenu = (parmas: Menu.MenuOptions) => {
  return httpss.post(`/add`, parmas);
};

//删除菜单
export const deleteMenus = (id: number) => {
  console.log("删除的id", id);
  return httpss.delete(`/delete/${id}`);
};
